char * thisString; // A stand alone declaration of a char *. char * aString, * bString; // Declaring two char *s at the same time. char * cString = "Hello", char * dString = "World"; // Declaring and initializing two chars and initializing them at the same time. ________________________________________
class Hello : Application { void Main() { char * helloString = "Hello, World!"; printf("%s\n", helloString); } }
Output: Hello, World! |